package com.mrjy.maintain.dao;

import com.mrjy.common.entity.TeacherInfo;
import com.mrjy.maintain.dto.MasterListDTO;
import com.mrjy.maintain.dto.TeacherInfoDTO;
import com.mrjy.maintain.dto.TeacherParamDTO;
import com.mrjy.maintain.dto.TeachersHasRecordAuthDTO;
import com.mrjy.maintain.dto.TeachersRecordAuthParamDTO;

import java.util.List;
import java.util.Map;


public interface ITeacherInfoDao {
	
	public int insert(TeacherInfo info);

	public int deleteByIds(int[] ids);
	
	public int updateById(TeacherInfo info);
	
	public int updateByUserId(TeacherInfo info);

	public TeacherInfoDTO queryById(int id);

	public int querySumTeacherInfo(TeacherInfoDTO dto);

	public List<TeacherInfoDTO> queryPage(TeacherInfoDTO dto);

	public int updateDisableFlag(TeacherInfo info);

    public TeacherInfo queryByUserId(TeacherInfo info);

	List<Integer> selectTeacherIdByRecommendCode(Map<String,Object> map);

    int txUpdateByUserId(TeacherInfo info);

	public TeacherInfo queryByMobilePhone(String mobilePhone);

    int deleteTeacherByIds(int[] ids);

	public List<TeacherInfoDTO> queryListForImportSolr(TeacherInfo info);
	
	public TeacherInfo queryTeacherByUserId(Integer userId);
	
	List<TeachersHasRecordAuthDTO> queryTeachersHasRecordAuth(TeachersRecordAuthParamDTO dto);

	public List<MasterListDTO> queryTeacherList(TeacherParamDTO dto); 

}
